#ifndef LINKLIST_H
#define LINKLIST_H

#include<iostream>
#include<string>
using namespace std;

template<class T>

class Node
{
	private:
		T value;
		Node * next;
	public:
		Node(){}
		Node(T t)
		{
			value=t;
			cout<<"construct Node"<<endl;
		}
		Node(const Node & n)
		{
			value=n.value;
			next=n.next;
		}

		~Node()
		{
			cout<<"destruct Node"<<endl;
		}
		
		void display()
		{cout<<value<<endl;}
};

template<class T>
class List
{

	private:
		Node<T>  head;
		//Node * rear;
		//Node * cur;
		//Node * pre;
		int len;
	public:
		List(){}
//		List(int len);
//		List(const List & l);
		void display();
	
};
#endif
